home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
PET
/
S-Super PET
/
(s)t3.d64
/
FORTRANPLOT
< prev
next >
Wrap
Text File
|
2009-01-18
|
407b
|
16 lines
* plots a sin wave
* (example of GENERATING a format specification)
character form
i=0
while i<100
i=i+1
s=sin(float(i)/10)
if (s.ge.0) then do
form='t'//cnvi2c(41+ifix(s*39))//',''*'',/,''+'',t40,''|'''
else do
form='t40,''!'',/,''+'''//',t'//cnvi2c(41+ifix(s*39))//',''+'''
end if
print form
endloop
end